{% extends 'base.html' %}
{% load assign %}

{% block title %}My Tumblelog{% endblock %}
{% block primary %}

{% for object in tumble_item_list %}
	{% assign obj object.content_object %}
	{%ifequal object.content_type.name 'link'%}
		<a href="{{ obj.url }}" title="{{ obj.title}}">{{ obj.title}}</a>{{obj.description}} Posted on {{object.pub_date|date:"D d M Y"}}
	{% endifequal %}

	{%ifequal object.content_type.name 'entry'%}
		<h2>{{ obj.title }}</h2>

		<p>{{ obj.pub_date }}</p>
		{{ obj.body_html|truncatewords_html:"20"|safe }}
		<p><a href="{{obj.get_absolute_url}}">more</a></p>
	{% endifequal %}
{% endfor %}
{% endblock %}